From 4e9929f5bde62e19653a4c7f5792648f56ef35ab Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Wed, 4 Dec 2019 18:21:04 +0000 Subject: [PATCH] x86/vmx: Shrink TASK_SWITCH's hvm_task_switch_reason reasons[] No need to use 4-byte integers to store two bits of information. Signed-off-by: Andrew Cooper Reviewed-by: Kevin Tian Reviewed-by: Jan Beulich --- xen/arch/x86/hvm/vmx/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 8debf6be3e..f6350daf4b 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3979,7 +3979,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) vmx_update_cpu_exec_control(v); break; case EXIT_REASON_TASK_SWITCH: { - static const enum hvm_task_switch_reason reasons[] = { + static const uint8_t reasons[] = { TSW_call_or_int, TSW_iret, TSW_jmp, TSW_call_or_int }; unsigned int inst_len, source; -- 2.30.2